{if $zbp->Config('ydblog')->related=='1'}
<div id="related">
  <ul class="related_img">
    {$numshuzi = $zbp->Config('ydblog')->ydblog_relatedshuzi;}
    {$array=GetList($numshuzi,null,null,null,null,null,array('is_related'=>$article->ID));}
	{foreach $array as $related}
    {if $zbp->CheckPlugin('IMAGE')}{php}IMAGE::getPics($related,312,180,4){/php}{/if}
    {if $zbp->CheckPlugin('sf_img1')}{php}SF_img1::getPics($related,312,180,4){/php}{/if}
    <li><a href="{$related->Url}" title="{$related->Title}" target="_blank"><img src="{if $zbp->CheckPlugin('IMAGE') && $related->IMAGE_COUNT>0}{$related.IMAGE[0]}{elseif $zbp->CheckPlugin('sf_img1') && $related->sf_img_count>0}{$related.sf_img[0]}{else}{ydblog_thumbnail($related)}{/if}" alt="{$related->Title}" title="{$related->Title}" class="thumbnail" width="200" height="115" />
      <h2>{$related->Title}</h2>
      </a></li>
    {/foreach}
  </ul>
</div>
<div class="clear"></div>
{/if}